#include<iostream>
#include<format>
using namespace std;
int main()
{
  char a,b,c;
  cin>>a>>b>>c;
  cout<<c<<b<<a;
}